<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglibs.jsp" %>
<%
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
%>
<c:set var="ctx" value="<%=basePath %>"/>
<!DOCTYPE html> 
<html>
<head>
<%@ include file="/WEB-INF/pages/common/css.jsp" %>
<title>帖子列表</title>
</head>
<body>
<div class="container">
    <input type="hidden" id="domain" value="http://static.ccplay.com.cn">
    <input type="hidden" id="uptoken_url" value="http://daniel.com/api/v2/forum/uptoken">
    <input type="hidden" id="key" value="">
    <input type="text" id="topicImages" name="images" value="">
    <input type="file" name="testFile">
    <div class="body">

	<a href="javascript:;" class="picIcon"></a>
    <div id="FileUploaded"></div>
    <div class="pic-box op" id="pic_box_id">
             <div id="container">
	        	<div class="pic">
	            	<span class="img" id="pickfiles" ><img  src="${ctx}/img/fml.png"/></span>
	            </div>  
            </div>
     </div>
</div>
</div>

<%@ include file="/WEB-INF/pages/common/footer.jsp" %>

=====================
<div id="tagId_01">fsdafsdafdsafdsaf</div>
<p><a href="javascript:MsgBox.remove('确定删除这条回复吗？','tagId_01','http://www.baidu.com/id/123');"  class="Btn delete-reply">删除</a></p>

<script type="text/javascript">

var MsgBox = (function(){
	return{
		
		tipsDiv : '<div id="promp" class=\"delete-reply-box op\"><div class=\"g-mask\"></div><div class=\"delete-prompt\">'
				  +'<p>{msg}</p><div class=\"btn-box\"><a href=\"javascript:MsgBox.hidden();\" class=\"Btn cancelNewBtn\">取消</a>'
				  +'<a href="javascript:MsgBox.doRemove(\'{url}\',\'{tagId}\')" class=\"Btn delete-reply\">删除</a></div></div>',
		
		remove : function(msg,tagId,url) {
			this.show(msg,tagId,url);
		},
		
		doRemove : function(tagId,url) {
			$.ajax({
				url: url,
				dataType: 'json',
				cache: false,
				type: 'GET',
				success: function(event, param) {
					var data=param.data;
					if(data && data.isSuccess){
						   $("#"+tagId).remove();
						   this.hidden();
					}else{
						 alert(" delete error");
					}
				}
			});
		},
		
		show : function(msg,tagId,url) {
			this.tipsDiv =  this.tipsDiv.replace("{msg}",msg).replace("{url}",url).replace("{tagId}",tagId);
			$("body").append(this.tipsDiv);
			$("#promp").toggleClass("op");
		},
		
		hidden : function() {
			$("#promp").toggleClass("op").remove();
		},
		
	};
})();

</script>




</body>
</html>
